package com.homestay.service.impl;

import com.homestay.beans.Admins;
import com.homestay.dao.AdminsDao;
import com.homestay.dao.impl.AdminsDaoImpl;
import com.homestay.service.AdminsService;

// 业务逻辑层实现类
public class AdminsServiceImpl implements AdminsService {

    AdminsDao adminsDao = new AdminsDaoImpl();

    @Override
    public Admins login(String username, String password) {
        return adminsDao.login(username, password);
    }

    @Override
    public Admins queryByUsername(String username) {
        return adminsDao.queryByUsername(username);
    }

    @Override
    public int add(Admins admin) {
        return adminsDao.add(admin);
    }
}
